﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AlertAMV.aspx.cs" Inherits="AlertUI_AlertAMV" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="SubMain"> <div id="S_Title">保养</div>
    
        <asp:FormView ID="FormView1" runat="server" DataSourceID="source_Alert" 
            Width="247px">
            <EditItemTemplate>
                AlertID:
                <asp:TextBox ID="AlertIDTextBox" runat="server" Text='<%# Bind("AlertID") %>' />
                <br />
                AlertName:
                <asp:TextBox ID="AlertNameTextBox" runat="server" 
                    Text='<%# Bind("AlertName") %>' />
                <br />
                AlertRule:
                <asp:TextBox ID="AlertRuleTextBox" runat="server" 
                    Text='<%# Bind("AlertRule") %>' />
                <br />
                OrganID:
                <asp:TextBox ID="OrganIDTextBox" runat="server" 
                    Text='<%# Bind("OrganID") %>' />
                <br />
                Description:
                <asp:TextBox ID="DescriptionTextBox" runat="server" 
                    Text='<%# Bind("Description") %>' />
                <br />
                <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                    CommandName="Update" Text="更新" />
                &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                    CausesValidation="False" CommandName="Cancel" Text="取消" />
            </EditItemTemplate>
            <InsertItemTemplate>
                AlertID:
                <asp:TextBox ID="AlertIDTextBox" runat="server" Text='<%# Bind("AlertID") %>' />
                <br />
                AlertName:
                <asp:TextBox ID="AlertNameTextBox" runat="server" 
                    Text='<%# Bind("AlertName") %>' />
                <br />
                AlertRule:
                <asp:TextBox ID="AlertRuleTextBox" runat="server" 
                    Text='<%# Bind("AlertRule") %>' />
                <br />
                OrganID:
                <asp:TextBox ID="OrganIDTextBox" runat="server" 
                    Text='<%# Bind("OrganID") %>' />
                <br />
                Description:
                <asp:TextBox ID="DescriptionTextBox" runat="server" 
                    Text='<%# Bind("Description") %>' />
                <br />
                <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                    CommandName="Insert" Text="插入" />
                &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                    CausesValidation="False" CommandName="Cancel" Text="取消" />
            </InsertItemTemplate>
            <ItemTemplate>
                AlertID:
                <asp:Label ID="AlertIDLabel" runat="server" Text='<%# Bind("AlertID") %>' />
                <br />
                AlertName:
                <asp:Label ID="AlertNameLabel" runat="server" Text='<%# Bind("AlertName") %>' />
                <br />
                AlertRule:
                <asp:Label ID="AlertRuleLabel" runat="server" Text='<%# Bind("AlertRule") %>' />
                <br />
                OrganID:
                <asp:Label ID="OrganIDLabel" runat="server" Text='<%# Bind("OrganID") %>' />
                <br />
                Description:
                <asp:Label ID="DescriptionLabel" runat="server" 
                    Text='<%# Bind("Description") %>' />
                <br />
                <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" 
                    CommandName="Edit" Text="编辑" />
                &nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" 
                    CommandName="New" Text="新建" />
            </ItemTemplate>
        </asp:FormView>
        <asp:ObjectDataSource ID="source_Alert" runat="server" 
            DataObjectTypeName="Model.Alert" InsertMethod="Add" SelectMethod="GetModel" 
            TypeName="BLL.AlertBLL" UpdateMethod="Update">
            <SelectParameters>
                <asp:QueryStringParameter Name="AlertID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    
    </div>
    </form>
</body>
</html>
